<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>修改数据库</title>
    <style>
      .fu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
      }
      form {
        height: 300px;
        width: 300px;
      }
      form div input {
        width: 180px;
        height: 30px;
      }
      .yi {
        margin-right: 16px;
      }
      .btn {
        margin-top: 50px;
        margin-left: 30px;
        width: 180px;
        height: 50px;
        box-shadow: 0 0 20px #ccc;
      }
    </style>
  </head>
  <body>
    <div class="fu">
      <form action="/books/mod/{{abook.id}}" method="post">
        <label><h1>修改当前数据</h1></label>
        <div>
          <label class="yi" for="name">书名:</label
          ><input type="text" value="{{abook.name}}" id="name" disabled />
        </div>
        <div>
          <label class="yi" for="price">定价:</label
          ><input type="text" value="{{abook.price}}" id="price" disabled />
        </div>
        <div>
          <label for="pub">出版社:</label
          ><input type="text" value="{{abook.pub}}" id="pub" disabled />
        </div>
        <div>
          <label for="market_price">市场价:</label
          ><input
            type="text"
            name="market_price"
            value="{{abook.market_price}}"
            id="market_price"
          />
        </div>
        <input class="btn" type="submit" value="确定修改" />
      </form>
    </div>
  </body>
</html>
